package com.qc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qc.dao.TemperamentDao;
import com.qc.entity.TemperamentEntity;
import com.qc.service.TemperamentService;

@Service("temperamentService")
public class TemperamentServiceImpl implements TemperamentService{

	@Resource(name="temperamentDao")
	private TemperamentDao temperamentDao;
	
	@Override
	public int getListTemperamentCount(String name) {

		return temperamentDao.getListTemperamentCount(name);
	}

	@Override
	public List<TemperamentEntity> getAllTemperament(String name, int pageNo, int pageSize) {

		return temperamentDao.getAllTemperament(name, pageNo, pageSize);
	}

	@Override
	public TemperamentEntity getBossJobId(long bId) {

		return temperamentDao.getBossJobId(bId);
	}

	@Override
	public int saveTemperament(TemperamentEntity temperament) {

		return temperamentDao.saveTemperament(temperament);
	}

	@Override
	public int deleteTemperamentId(long id) {

		return temperamentDao.deleteTemperamentId(id);
	}

	@Override
	public int updateTemperamentId(TemperamentEntity temperament) {

		return temperamentDao.updateTemperamentId(temperament);
	}

	@Override
	public List<TemperamentEntity> listAllTemperament(String sex) {

		return temperamentDao.listAllTemperament(sex);
	}

}
